package com.example.bookmarks.xmlmapper;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

public class BookmarkLink {
    @JacksonXmlProperty(isAttribute = true, localName = "HREF")
    private String href;

    @JacksonXmlProperty(isAttribute = true, localName = "ADD_DATE")
    private String addDate;

    @JacksonXmlProperty(isAttribute = true, localName = "ICON")
    private String icon;

    private String content;

    // Getters and setters
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getAddDate() {
        return addDate;
    }

    public void setAddDate(String addDate) {
        this.addDate = addDate;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "BookmarkLink{" +
                "content='" + content + '\'' +
                ", href='" + href + '\'' +
                ", addDate='" + addDate + '\'' +
                '}';
    }
}